package com.oa.hyperion.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

@Data
public class Department implements Serializable {

  //指定id类型为自增长
  @TableId(type = IdType.AUTO)
  private Integer id;

  private String name;
  private Integer header;
  //逻辑删除，修改状态
  private String status;

  //多表联查，查询领导
  @TableField(exist = false)
  private Employee leader;
}
